// 引入一堆路由组件
import Home from '@/pages/Home'
import Login from '@/pages/Login'
import Register from '@/pages/Register'
import Search from '@/pages/Search'
import Test from '@/pages/Test'
import Detail from '@/pages/Detail'

export default [
    {
        name:'home',
        path:'/home',
        component:Home,
        meta:{showFooter:true}
    },
    {
        name:'login',
        path:'/login',
        component:Login,
        meta:{showFooter:false}
    },
    {
        name:'register',
        path:'/register',
        component:Register,
        meta:{showFooter:false}
    },
    {
        name:'search',
        path:'/search',
        component:Search,
        meta:{showFooter:true}
    },
    {
        name:'test',
        path:'/test',
        component:Test,
        meta:{showFooter:true}
    },
    {
        name:'detail',
        path:'/detail/:id',
        props:true,
        component:Detail,
        meta:{showFooter:true}
    },
    {
        path:'/',
        redirect:'/home'
    }
]